package com.linkoog.devtools.http.request.common.request_body.text;

import com.linkoog.devtools.http.request.common.request_body.StringRequestBody;
import com.linkoog.devtools.http.request.common.RequestBodyType;

public class XmlRequestBody extends StringRequestBody {

    public XmlRequestBody() {
    }

    public XmlRequestBody(String value) {
        this.value = value;
    }

    public static XmlRequestBody of(String value) {
        return new XmlRequestBody(value);
    }

    @Override
    public RequestBodyType bodyType() {
        return RequestBodyType.XML;
    }

    @Override
    public String toString() {
        return "XmlHttpBody{" +
                "value='" + value + '\'' +
                '}';
    }
}
